#include "DataSwitch.h"

myCDataSwitch::myCDataSwitch()
{
    m_strStatus0 = "0";
    m_strStatus1 = "1";

    m_bInvert = false;
    m_bCreateEvent = false;

    m_bManualSet = false;
    m_Status = false;
    m_bStatusChange = false;
}

void myCDataSwitch::FreshData(bool Status)
{
    if(m_bManualSet) return;
    if(m_bInvert)
    {
        Status = (Status==false)? true : false;
    }
    else
    {
        Status = (Status)? true : false;
    }
    if(m_Status != Status)
    {
        m_Status = Status;
    }

}
